From: Peter Hutterer Date: Mon, 9 Sep 2024 01:07:08 +0000 (+1000) Subject: ci: Deny a plain "Closes: #123" message in the commit message X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~204^2^2~5 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=535959af4d4c2b77b9410c30101e8bc6ef394049;p=gnome-shell.git ci: Deny a plain "Closes: #123" message in the commit message We need the full link so let's warn contributors about this instead of having reviewers pointing this out. Part-of: --- diff --git a/.gitlab-ci/commit-rules.yml b/.gitlab-ci/commit-rules.yml index 2aa32d992..4c0f93d50 100644 --- a/.gitlab-ci/commit-rules.yml +++ b/.gitlab-ci/commit-rules.yml @@ -12,3 +12,5 @@ patterns: - regex: '([^.]\.|[:,;])\s*$' message: Commit message subject should not end with punctuation where: subject + - regex: '^Closes:?\s*#[0-9]+' + message: Closes instructions must be a full link